﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class PhieuThuePhongBUS
    {
        public static List<PhieuThueInfo> DanhSachPhieuThue()
        {
            PhieuThuePhongDAO p = new PhieuThuePhongDAO();
            return p.LayDanhSachPhieuThuePhong();
        }

        public static int ThemPhieuThuePhong(PhieuThuePhongDTO phieu, List<int> dskh)
        {
            PhieuThuePhongDAO p = new PhieuThuePhongDAO();
            return p.ThemPhieuThuePhong(phieu, dskh);
        }

        public static int LaySoKhachToiDaTheoLoaiPhong(string MaLoaiPhong)
        {
            PhieuThuePhongDAO p = new PhieuThuePhongDAO();
            return p.LaySoKhachToiDaTheoLoaiPhong(MaLoaiPhong);
        }

        public static int LayGiaPhongTheoLoaiPhong(string MaLoaiPhong)
        {
            PhieuThuePhongDAO p = new PhieuThuePhongDAO();
            return p.LayGiaPhongTheoLoaiPhong(MaLoaiPhong);
        }

        public static List<PhongInfo> DanhSachPhongTrong()
        {
            PhieuThuePhongDAO p = new PhieuThuePhongDAO();
            return p.DanhSachPhongTrong();
        }

        public static PhongInfo LayThongTinPhong(string MaPhong)
        {
            PhieuThuePhongDAO p = new PhieuThuePhongDAO();
            return p.LayThongTinPhong(MaPhong);
        }

        public static List<PhongDTO> LayPhongTrongTheoMaLoaiPhong(string MaLoaiPhong)
        {
            PhieuThuePhongDAO p = new PhieuThuePhongDAO();
            return p.LayPhongTheoMaLoaiPhong(MaLoaiPhong);
        }

        public static PhieuThueInfo LayPhieuThuePhong(int MaPhieu)
        {
            PhieuThuePhongDAO p = new PhieuThuePhongDAO();
            return p.LayPhieuThuePhong(MaPhieu);
        }
    }
}
